﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 设备状态变动记录
    /// </summary>
	[Table("MachineStatusRecord")]

    [Display(Name = "_Model.MachineStatusRecord")]
    public class MachineStatusRecord : BasePoco
    {
        [Display(Name = "_Model._MachineStatusRecord._factoryCode")]
        [Comment("工厂编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string FactoryCode { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._lineCode")]
        [Comment("产线编码")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._stationCode")]
        [Comment("工位编码")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._machineStatusCode")]
        [Comment("机台状态编码")]
        public string MachineStatusCode { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._acquistCode")]
        [Comment("数采设备编码")]
        public string AcquistCode { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._machineStatusBegin")]
        [Comment("接收时间")]
        public string MachineStatusBegin { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._machineStatusEnd")]
        [Comment("处理时间")]
        public string MachineStatusEnd { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._editTime")]
        [Comment("修改时间")]
        public string EditTime { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._StatusType")]
        [Comment("状态")]
        public string StatusType { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._uploadflag")]
        [Comment("上传标识")]
        public bool? Uploadflag { get; set; }
        [Display(Name = "_Model._MachineStatusRecord._machineCode")]
        [Comment("机台编码")]
        public string MachineCode { get; set; }

	}

}
